<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jscss.jsp"%>

<script type="text/javascript">
<!--

	//修改频道
	function updateClass() {
		var name = $.trim($("#name").val());
		if(name==""){
			$.ligerDialog.warn("请填写频道名称！");
			return;
		}
		$("#updateClass").attr("onclick","");
		$.post("/misc/cms/editClass.htm",{
			name : name,
			identifier : "${class.identifier}"
		},function(data){
			if (data == "success") {
				parent.$.ligerDialog.success("更新成功！");
			}else{
				parent.$.ligerDialog.warn("系统有点抽经，请稍候重试！");
			}
			parent.dialog_ae.close();
		});
	}
	
//-->
</script>

<style>
	.def_t td{border:1px solid #ccc; padding:5px;}
</style>

<table width="100%" class="def_t">
	<tr>
		<td>频道号：</td>
		<td><input type="text" value="" readonly style="border:1px solid #a3c0e8; padding:3px 5px;width: 350px;">
		</td>
	</tr>
	<tr>
		<td>名称：</td>
		<td><input type="text" id="name" value="${class.name }" style="border:1px solid #a3c0e8; padding:3px 5px;width: 350px;">
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<button type="button" style="padding:2px 20px;" id="updateClass" onclick="updateClass()">保存</button>
		</td>
	</tr>
</table>